package com.coffee.daili.service.dao;

import com.coffee.daili.api.query.DailiSkuQuery;
import com.coffee.daili.service.bean.DailiSku;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DailiSkuDao {
	public DailiSku findById(Integer id);
	
	public DailiSku findByIdForUpdate(Integer id);
	
	public List<DailiSku> findByIds(@Param("idList") List<Integer> idList);

	public Integer count(@Param("param") DailiSkuQuery param);

	public List<DailiSku> page(@Param("param") DailiSkuQuery param, @Param("offset") Integer offset, @Param("rows") Integer rows);

	public DailiSku findFirst(@Param("param") DailiSkuQuery param);

	public Integer insert(DailiSku param);

	Integer insertBatch(List<DailiSku> list);

	public void updateById(@Param("param") DailiSku param);
	
	public Integer deleteById(Integer id);
	
	public Integer deleteByIds(List<Integer> idList);

	public List<Integer> findSkuIdsBySupplierId(Integer supplierId);

	public List<DailiSku> findList();

}